//Ta Duc Viet - 11020397
//5/3/12
//Tinh luy thua x^n
#include <iostream>
using namespace std;
int main()
{
   float x, n, LuyThua;
   cout << "Tinh x^n:" << endl;
   cout << "x = ";
   cin >> x;
   cout << "n = ";
   cin >> n;
   LuyThua = 1;
   if (n == 0) cout << x << "^" << n << " = 0" << endl;
   else
   {
       for (int i = 0;i < n;i++)
       {
          LuyThua = LuyThua*x;
       }
       cout << x << "^" << n << " = " << LuyThua << endl;
   }
   system("pause");
   return 0;
}
